﻿namespace System.Models.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class createTemporaryAccessApplication : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.T_Temporary_Access",
                c => new
                    {
                        Id = c.Int(nullable: false, identity: true),
                        ApplicationName = c.String(nullable: false, maxLength: 100, unicode: false),
                        AccessReason = c.String(nullable: false, maxLength: 255, unicode: false),
                        ExamineResult = c.Boolean(),
                        EnterTime = c.DateTime(),
                        OutTime = c.DateTime(),
                        ExamineName = c.String(maxLength: 100, unicode: false),
                        ExamineTime = c.DateTime(),
                        EnterOutPass = c.String(maxLength: 100, unicode: false),
                        CreateTime = c.DateTime(nullable: false),
                        IsRemoved = c.Boolean(nullable: false),
                        Remark = c.String(maxLength: 255, unicode: false),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.T_Temporary_Access");
        }
    }
}
